package specialist.specialist.lab_4_Fibonnachi;

/**
 * Created with IntelliJ IDEA.
 * User: Станислав
 * Date: 26.04.14
 * Time: 19:19
 * To change this template use File | Settings | File Templates.
 */
public class Main {
    public static void main(String[] args) {
        int a = 0;
        int b = 1;

        while ((a+b)<1000){
           int c = a + b;
            System.out.println(c);
            a = b;
            b = c;


        }

    }
}
